package com.Brave.manager.Demo02;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        Scanner S = new Scanner(System.in);

        System.out.println("请输入账号：");

        String name = S.next();
        System.out.println("请输入密码：");
        String pass = S.next();

        FileWriter fs = new FileWriter("D:\\JAVA\\File\\a.txt");
        fs.write(name);
        fs.write("\r\t");
        fs.write(pass);
        fs.flush();
        fs.close();
    }
}
